<template>
    <div id="car">
        <fieldset>
             <legend>购物车</legend>
              <ul>
                 <li v-for="item of carts" :key=item.id>
                      名称:{{item.title}}====价格:{{item.price}}===数量:{{item.count}}
                 </li>
              </ul>
        </fieldset>
    </div>
</template>

<script>
import { mapState } from 'vuex';
export default {
   mounted(){
      
   },
   computed:{
     ...mapState("car",["carts"])
   }
}
</script>

<style>

</style>